Fix vision install for all files#9465
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/9465
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New FailuresAs of commit f88e169 with merge base 4e58149 ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
4980a8f to
7f9a788
Compare
I encounter the same error, I reported it here: pytorch/pytorch#179005 . The issue seems to be with PyTorch itself. This PR pytorch/pytorch#179100 solves it for me, not only for TorchVision but also for when I try to build other projects. |
|
HI @jovan2009 the issue is different now: |
I think that is a completely different issue. Cuda 13.2 builds are still showing the same CUDACachingAllocator.h error: https://github.com/pytorch/vision/actions/runs/23955132613/job/70051911372 My impression is that Cuda 13.2 builds are failing earlier, during building. All the others are failing a test after building successfully. |
|
Yes, the actual error that should be blocking is the |
|
Build still failing in https://github.com/pytorch/vision/actions/runs/23955132613/job/70243562557 since https://github.com/pytorch/pytorch/pull/179100/changes is not in nightly branch yet. |
|
Hey @atalman! You merged this PR, but no labels were added. |
| if "nvcc" in extra_compile_args: | ||
| extra_compile_args["nvcc"].append("-Xcompiler") | ||
| extra_compile_args["nvcc"].append("/Zc:preprocessor") | ||
| extra_compile_args["nvcc"].append("-DCCCL_IGNORE_MSVC_TRADITIONAL_PREPROCESSOR_WARNING") |
There was a problem hiding this comment.
I suspect this broke Windows ROCm builds: ROCm/TheRock#4463 as soon as we picked up this commit from the 'nightly' branch of this repository (e51b6cc)
2026-04-10T08:02:02.3608593Z FAILED: [code=1] B:/src/vision/build/temp.win-amd64-cpython-313/Release/torchvision/csrc/ops/hip/ps_roi_align_kernel.obj
2026-04-10T08:02:02.3613939Z C:\home\runner\_work\_tool\Python\3.13.13\x64\Lib\site-packages\_rocm_sdk_devel\bin\hipcc.exe -std=c++20 -Xcompiler -D__HIP_PLATFORM_AMD__=1 -Xcompiler -DUSE_ROCM=1 -Xcompiler -DHIPBLAS_V2 -Xcompiler -fms-runtime-lib=dll -DWITH_HIP -Dtorchvision_EXPORTS -IB:\src\vision\torchvision\csrc -IC:\home\runner\_work\_tool\Python\3.13.13\x64\Lib\site-packages\torch\include -IC:\home\runner\_work\_tool\Python\3.13.13\x64\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\home\runner\_work\_tool\Python\3.13.13\x64\Lib\site-packages\torch\include\THH -IC:\home\runner\_work\_tool\Python\3.13.13\x64\Lib\site-packages\_rocm_sdk_devel\include -IC:\home\runner\_work\_tool\Python\3.13.13\x64\include -IC:\home\runner\_work\_tool\Python\3.13.13\x64\Include -IC:\Program\Files\Microsoft\Visual\Studio\2022\Community\VC\Tools\MSVC\14.44.35207\include -IC:\Program\Files\Microsoft\Visual\Studio\2022\Community\VC\Tools\MSVC\14.44.35207\ATLMFC\include -IC:\Program\Files\Microsoft\Visual\Studio\2022\Community\VC\Auxiliary\VS\include -IC:\Program\Files\(x86)\Windows\Kits\10\include\10.0.26100.0\ucrt -IC:\Program\Files\(x86)\Windows\Kits\10\\include\10.0.26100.0\\um -IC:\Program\Files\(x86)\Windows\Kits\10\\include\10.0.26100.0\\shared -IC:\Program\Files\(x86)\Windows\Kits\10\\include\10.0.26100.0\\winrt -IC:\Program\Files\(x86)\Windows\Kits\10\\include\10.0.26100.0\\cppwinrt -IC:\Program\Files\(x86)\Windows\Kits\NETFXSDK\4.8\include\um -c B:\src\vision\torchvision\csrc\ops\hip\ps_roi_align_kernel.hip -o B:\src\vision\build\temp.win-amd64-cpython-313\Release\torchvision\csrc\ops\hip\ps_roi_align_kernel.obj -DCUDA_HAS_FP16=1 -D__HIP_NO_HALF_OPERATORS__=1 -D__HIP_NO_HALF_CONVERSIONS__=1 -DHIP_ENABLE_WARP_SYNC_BUILTINS=1 -fms-extensions -Wno-ignored-attributes -D__HIP_PLATFORM_AMD__=1 -DUSE_ROCM=1 -DHIPBLAS_V2 -fms-runtime-lib=dll -Xcompiler /Zc:preprocessor -DCCCL_IGNORE_MSVC_TRADITIONAL_PREPROCESSOR_WARNING -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C --offload-arch=gfx1030 --offload-arch=gfx1031 --offload-arch=gfx1032 --offload-arch=gfx1034 -fno-gpu-rdc
2026-04-10T08:02:02.3619214Z clang: error: no such file or directory: '/Zc:preprocessor'
Seems like we're swapping out nvcc for hipcc which does not understand the MSVC style flag?
Previous fix #9464 only applies to the .cpp files compiled directly by cl.exe, not .cu files via nvcc. Need to change it in the setup.py.
cc @atalman